/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package onpu_dms_xls.exceptions;

/**
 *
 * @author snbm
 */
public class MyXMLException extends MyException {

    private String description;

    public MyXMLException(String className, String methodAndSectionName, String description, String message) {
        super(className, methodAndSectionName, message);
        this.description = description;
    }

    @Override
    public String toString() {
        return "---XML Exception:"
                + "\n--in class: " + className
                + "\n--in method/section: " + methodName
                + "\n--description: " + description
                + "\n--with message: " + errorMessage;
    }
}
